home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20030409-20031118
/
000312_nugulus@netscape.net_Mon Sep 29 11:13:27 EDT 2003.msg
< prev
next >
Wrap
Text File
|
2003-11-18
|
2KB
|
55 lines
Article: 14557 of comp.protocols.kermit.misc
Path: newsmaster.cc.columbia.edu!panix!newsfeed.mathworks.com!news-out.cwix.com!newsfeed.cwix.com!prodigy.com!newsmst01.news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!newssvr11.news.prodigy.com.POSTED!not-for-mail
From: Jun Zhang <nugulus@netscape.net>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 Netscape/7.1
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: comp.protocols.kermit.misc
Subject: Re: Array assignment problem
References: <Eu1db.229$3I6.194268280@newssvr11.news.prodigy.com> <bl4am6$7m1$1@sesame.cc.columbia.edu>
In-Reply-To: <bl4am6$7m1$1@sesame.cc.columbia.edu>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 31
Message-ID: <5MXdb.664$Rg3.532194417@newssvr11.news.prodigy.com>
NNTP-Posting-Host: 159.66.144.147
X-Complaints-To: abuse@prodigy.net
X-Trace: newssvr11.news.prodigy.com 1064847489 ST000 159.66.144.147 (Mon, 29 Sep 2003 10:58:09 EDT)
NNTP-Posting-Date: Mon, 29 Sep 2003 10:58:09 EDT
Organization: SBC http://yahoo.sbc.com
X-UserInfo1: FKPO@MC@@S@OR\TY[BHN^_TDFZ\@@FXLM@TDOCQDJ@_@FN\CDVW[AKK[J\]^HVKHG^EWZHBLO^[\NH_AZFWGN^\DHNVMX_DHHX[FSQKBOTS@@BP^]C@RHS_AGDDC[AJM_T[GZNRNZAY]GNCPBDYKOLK^_CZFWPGHZIXW@C[AFKBBQS@E@DAZ]VDFUNTQQ]FN
Date: Mon, 29 Sep 2003 14:58:09 GMT
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14557
The assignment
\%1 = \&a[1]
didn't take effect, since
echo "\%1"
give me nothing. I intended to pass \%1 as argument to DELIVER.
Please shed me some light.
Jun
Frank da Cruz wrote:
> In article <Eu1db.229$3I6.194268280@newssvr11.news.prodigy.com>,
> Jun Zhang <nugulus@netscape.net> wrote:
> : fopen /read \%c phonelist
> : while true {
> : fread /line \%c record
> : echo "The line read in is \m(record)" ; Got "5035 rootpass", fine.
> : void \fsplit(\m(record),&a)
> : echo "Phonenumber is \&a[0]" ; Got "phonenumber is 3",
> : ; instead of 5035.
> : What's wrong?
> :
> As explained in the documentation, the 0th element of an array contains
> the number of elements in the array. The data elements begin at 1.
>
> You can see what's in an array with "show array", in this case:
>
> show array a
>
> - Frank